package trading.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class HomepageController {

	public class URLPrefix {
		public static final String ROOT = "/";
		public static final String HOME = "/home";
	}
	
	@RequestMapping(value = { URLPrefix.ROOT, URLPrefix.HOME }, method = RequestMethod.GET)
	public ModelAndView showHomepage() {
		return new ModelAndView("homepage", new ModelMap());
	}
}
